package classloader;

/**
 * @Description: null
 * @Project: testDemo
 * @Author: hjibo
 * @CreateDate: 2019/2/16 09:11
 * @ModificationHistory: （who whatTime doWhat）
 */
public class Main {

public static void main(String[] args) {
    try {
        // 获取类加载器对象
        ClassLoader loader = Test.class.getClassLoader();
        // 加载类
        loader.loadClass("classloader.Test");

    } catch (ClassNotFoundException e) {
        e.printStackTrace();
    }
}
}
